using System;
using System.Collections;


namespace CUtil
{
	public class StockTimeInterval
	{
		public string Name;
		public int Interval;

		public StockTimeInterval(string myName, int myInterval)
		{
			this.Name = myName;
			this.Interval = myInterval;

		}
//		public StockTimeInterval()
//		{
//			this.Name = myName;
//			this.Interval = myInterval;
//
//		}
	}


	public class StockPeriods
	{
		private NameObjectCollection periods ; 
		private static StockPeriods instance;
		public StockPeriods()
		{
			StockPeriods.instance = this;
			periods = new NameObjectCollection();
			periods.Add(DatePeriods.PeriodAll.ToString(),10000);
			periods.Add(DatePeriods.Period2J.ToString(),732);
			periods.Add(DatePeriods.Period1J.ToString(),365);
			periods.Add(DatePeriods.Period6M.ToString(),180);
			periods.Add(DatePeriods.Period3M.ToString(),90);
			
		}
		public NameObjectCollection Periods
		{
			get
			{
				return this.periods;
			}
		}
		public static StockPeriods Instance
		{
			get
			{
				if (StockPeriods.instance == null)
				{
					StockPeriods.instance = new StockPeriods();
				}
				return StockPeriods.instance;

			}
		}

		//period 
	}

}
